package com.sgcc.cy.dto;

import com.sgcc.cy.poi.annotation.Excel;
import groovy.transform.Field;

import java.io.Serializable;
import java.util.Date;

public class EmpEntity implements Serializable {////必须实现可序列化接口，要在网络上传输

    /**
     * ----@Field("id")----使用这个注释，里面的名字是根据你在solr数据库中配置的来决定
     */
    @Excel(name = "序号")
    private int id;

    @Excel(name = "姓名")
    private String name;

    @Excel(name = "年龄")
    private int age;

    private int sex;

    @Excel(name = "性别")
    private String sexs;

    @Excel(name = "工作")
    private String job;

    private Date createTime;

    @Excel(name = "更新时间")
    private Date updateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getSexs() {
        return sexs;
    }

    public void setSexs(String sexs) {
        this.sexs = sexs;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
